package snippet;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import java.util.*;

public class Test {
	public static void main(String[] args) {
//		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
//		LocalDate d1 = LocalDate.parse("20220412",formatter);
//		LocalDate d2 = LocalDate.parse("20240412",formatter);
//		
//		long d = ChronoUnit.DAYS.between(d1, d2);
//		long h = ChronoUnit.HOURS.between(d1, d2);
//		System.out.println(d);
//		System.out.println(h);
		
		
		LocalDate d = LocalDate.now();
		LocalDate nextYear = d.plus(5,ChronoUnit.DAYS);
		
		System.out.println(nextYear);
		
		
	}
	
}
